<?php

namespace App\Http\Requests;


trait RulesFromModel
{
    public function rules()
    {
        return $this->model()->validateRules();
    }

    public function messages()
    {
        return $this->model()->validateMessages();
    }

    public function attributes()
    {
        return $this->model()->validateAttributes();
    }
}